package com.ruoyi.media.phoneCache.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 短信验证码号码池业务对象 media_create_wechat_mp_phone
 *
 * @author dqw
 * @date 2023-05-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MediaCreateWechatMpPhoneBo extends BaseEntity {

    /**
     * 主键
     */
    //@NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 部门id
     */
    //@NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 用户id
     */
    //@NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phoneNumber;

    /**
     * 短信验证码
     */
    //@NotBlank(message = "短信验证码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phoneChace;
    /**
     * 短信是否使用
     */
    private Integer isUse;

}
